package com.ruoyi.system.domain.distribution;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.Date;
// app端的 用户佣金表
public class CashManagement extends BaseEntity
    {
        private static final long serialVersionUID = 1L;

        /** 收益id */
        private Integer manageId;

        /** 所有店铺可提取金额 */
        @Excel(name = "所有店铺可提取金额")
        private Double depositMoney;

        /** 审批 0通过 1不通过 */
        @Excel(name = "审批 0通过 1不通过")
        private String approve;

        /** 用户ID */
        @Excel(name = "用户ID")
        private Long customerId;

        /** 时间 */
        @JsonFormat(pattern = "yyyy-MM-dd")
        @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date timedate;

        /** 邀请人ID */
        @Excel(name = "邀请人ID")
        private Long inviterId;

        private double balance = 0.0;

        private double totalNum = 0.0;



        @Override
        public String toString() {
            return "CashManagement{" +
                    "manageId=" + manageId +
                    ", depositMoney=" + depositMoney +
                    ", approve='" + approve + '\'' +
                    ", customerId=" + customerId +
                    ", timedate=" + timedate +
                    ", inviterId=" + inviterId +
                    '}';
        }

        public double getBalance() {
            return balance;
        }

        public void setBalance(double balance) {
            this.balance = balance;
        }

        public double getTotalNum() {
            return totalNum;
        }

        public void setTotalNum(double totalNum) {
            this.totalNum = totalNum;
        }

        public static long getSerialVersionUID() {
            return serialVersionUID;
        }

        public Integer getManageId() {
            return manageId;
        }

        public void setManageId(Integer manageId) {
            this.manageId = manageId;
        }

        public Double getDepositMoney() {
            return depositMoney;
        }

        public void setDepositMoney(Double depositMoney) {
            this.depositMoney = depositMoney;
        }

        public String getApprove() {
            return approve;
        }

        public void setApprove(String approve) {
            this.approve = approve;
        }

        public Long getCustomerId() {
            return customerId;
        }

        public void setCustomerId(Long customerId) {
            this.customerId = customerId;
        }

        public Date getTimedate() {
            return timedate;
        }

        public void setTimedate(Date timedate) {
            this.timedate = timedate;
        }

        public Long getInviterId() {
            return inviterId;
        }

        public void setInviterId(Long inviterId) {
            this.inviterId = inviterId;
        }
    }
